<!DOCTYPE html>
<html lang="en">

<%- include('common/head') %>

<body>
  <%- include('common/navbar') %>

  <div class="container">
    <ol class="breadcrumb">
      <li><a href="/">博客首页</a></li>
      <li class="active">用户列表</li>
    </ol>
    <h2>用户列表</h2>
    <div class="userInfoList">
      <table class="table table-striped">
        <tr>
          <th>ID</th>
          <th>用户名</th>
          <th>密码</th>
          <th>是否为管理员</th>
        </tr>
        <% users.forEach(function(user) { %>
        <tr style="font-size: 16px">
          <td width="30%"><%= user.id %></td>
          <td width="10%"><%= user.username %></td>
          <td width="10%"><%= user.password %></td>
          <td width="50%"><% if (user.isAdmin) { %> 是 <% } %></td>
        </tr>
        <% }) %>
      </table>
    </div>
    <%- include('common/page') %>
  </div>

  <script src="/js/jquery3.3.1.js"></script>
  <script src="/js/bootstrap.js"></script>
</body>
</html>
